import { request } from '@/framework/utils/request-jdz';
// 查询审批流程列表
export const getList = (queryParam) => {
  return request(
    {
      url: '/processCfg',
      method: 'get',
      params: queryParam,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 新增审批流程
export const getAddList = (data) => {
  return request(
    {
      url: '/processCfg',
      method: 'post',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 编辑审批流程
export const getPutList = (data, id) => {
  return request(
    {
      url: `/processCfg/${id}`,
      method: 'put',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 删除审批流程
export const getDelList = (id) => {
  return request(
    {
      url: `/processCfg/${id}`,
      method: 'delete',
    },
    {
      isGetDataDirectly: false,
    },
  );
};
//获取样本类型
export const gettypeList = (params) => {
  return request(
    {
      url: `processCfg/getSpecType`,
      method: 'get',
      params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
